﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CIRDiagnoseDevice
{
    public partial class AudioSignalValue : Form
    {
        public AudioSignalValue( bool isHigh)
        {
            InitializeComponent();
            if (isHigh)
                this.label1.Text = "音频信号高端值：";
            else
                this.label1.Text = "音频信号低端值：";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            float value = 0;
            float.TryParse(textBox1.Text,out value);
            MainForm.RXSettingValue = value;
            this.Close();
        }

        private void AudioSignalValue_Load(object sender, EventArgs e)
        {
            this.textBox1.Text = MainForm.RXSettingValue.ToString();
            textBox1.Focus();
        }
    }
}
